package com.tomato.zip.errors;

import com.tomato.commons.errors.ErrorType;
import lombok.AllArgsConstructor;

/**
 * 压缩错误类型
 */
@AllArgsConstructor
public enum ZipErrorType implements ErrorType {

    COMPRESS_FILE_NULL("5000000","compress.file.error","压缩文件不能为空"),
    COMPRESS_FILE_NOT_SUPPORT("5000000","compress.file.not.support","压缩文件类型不支持");

    private String code;
    private String template;
    private String message;

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }

    @Override
    public String getTemplate() {
        return template;
    }
}
